Accusoft.PdfXpress7.ActiveX
Save PDF to Memory

PDF Xpress™ supports saving a PDF document to memory.

To save an open PDF document to memory:

  1. Create a new SaveOptions object.
  2. Configure the SaveOptions object.
  3. Invoke the SaveDocumentToHandle method and specify SaveOptions to write the PDF file to a new Global Memory buffer.
Remote file access (HTTP / FTP) is not supported by PDF Xpress. 
VB Example
Copy Code
'This code demonstrates saving a PDF to memory
On Error GoTo error
Dim pdfxpress1 As New Pdfxpress
pdfxpress1.Initialize
pdfxpress1.RaiseExceptions = True
Dim document As New PdfDocument
document.SetParentControl pdfxpress1
Dim so As New saveOptions
Dim hGlobal As Long
document.SaveDocumentToHandle so, hGlobal
.
.
.
GoTo finish
error:

MsgBox pdfxpress1.PdfError

finish:

Set document = Nothing
pdfxpress1.Terminate
Set pdfxpress1= Nothing
See Also

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback